<extend name="Public:base" />
<block name="title">个人中心</block>
<block name="content">
    <div class="page__bd  ">
        <div id="" class="geren_bg">
            <img src="__PUBLIC__/home/img/touxiang.png" />
            <h1>{$hos['name']}</h1>
            <p>{$hos['integral']}积分</p>
        </div>
        <div class="weui-panel__bd geren_list">
            <div class="weui-media-box weui-media-box_small-appmsg">
                <div class="weui-cells">
                    <a class="weui-cell weui-cell_access" href="__MODULE__/User/userinfo">
                        <div class="weui-cell__hd"><img src="__PUBLIC__/home/img/geren_01.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p>信息中心</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
                    <a class="weui-cell weui-cell_access" href="__MODULE__/User/referrallist">
                        <div class="weui-cell__hd"><img src="__PUBLIC__/home/img/geren_02.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p>转诊记录</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
                    <a class="weui-cell weui-cell_access" href="__MODULE__/User/patientlist">
                        <div class="weui-cell__hd"><img src="__PUBLIC__/home/img/geren_03.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p>病例记录</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
                    <a class="weui-cell weui-cell_access" href="__MODULE__/User/passmod">
                        <div class="weui-cell__hd"><img src="__PUBLIC__/home/img/geren_04.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p>修改密码</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
                </div>
            </div>
        </div>
        <div class=" weui-cell">
            <a href="javascript:void(0)" class="weui-btn weui-btn_default" id="logout">退出登录</a>
        </div>
    </div>
    <script type="text/javascript">
        $("#logout").click(function(){
            $.ajax({
                type:'post',
                url:'__MODULE__/Login/logout',
                data:'',
                cache:false,
                dataType:'json',
                success:function(res){
                    if(res.code == 0){
                        layer.msg(res.msg,{time:1000},function () {
                            window.location.href = res.url;
                        });
                        return false;
                    }else{
                        layer.msg(res.msg);
                        return false;
                    }
                }
            });
        });
    </script>
</block>